package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 80561
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @createDate 2022-02-12 22:21:33
* @Entity com.itheima.stock.pojo.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(String id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    //板块指数功能
    List<Map> getInnerStockMarket(@Param("ids") List<String> inner, @Param("lastDate") String lastAvDate);

    //股票成交量对比功能
    List<Map> getStockTravol(@Param("stockDate") String date);

    //批量插入股票大盘数据
    void insertBatch(@Param("stockIndexInfoList") List<StockMarketIndexInfo> stockIndexInfoList);
}
